package com.kang.c0c.tree.node;


/**
 * 赋值运算符节点，定义了抽象语法树中赋值运算的节点
 * =		：EVA	赋值
 *
 * @field
 * ident	：需要被赋值的变量标识符
 * expr		：赋值表达式
 * 
 * @author kang
 *
 * Feb 6, 2009
 */
public class EvaluateNode extends Node{
	private LeafNode ident;
	private BinaryNode expr;
	
	public EvaluateNode(){
		this(null,null);
	}
	
	public EvaluateNode(LeafNode ident,BinaryNode expr){
		super(Nodes.EVA);
		this.ident = ident;
		this.expr = expr;
	}

	public LeafNode getIdent() {
		return ident;
	}

	public void setIdent(LeafNode ident) {
		this.ident = ident;
	}

	public BinaryNode getExpr() {
		return expr;
	}

	public void setExpr(BinaryNode expr) {
		this.expr = expr;
	}
}